package com.jetlion.dynamic.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import android.util.Log;

public class MyReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent == null) {
            return;
        }

        String action = intent.getAction();

        if (!TextUtils.isEmpty(action) && "android.intent.action.receiverdemo".equals(action)) {

            String msg = intent.getStringExtra("msg");

            Log.i("MyReveiver", "msg: " + msg);
        }
    }
}
